package com.wzb.springMybatis;

import com.wzb.springMybatis.entity.User;
import com.wzb.springMybatis.mapper.UserMapper;
import com.wzb.springMybatis.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = SpringMybatis.class)
public class test {
    @Autowired
    private UserService userService;
    @Test
    public void encode() {

        // 查看springSecurity加密后的密码
       User user =  userService.getUserByUserName("admin");
        System.out.println(user);
    }
}
